﻿using Jinjia.Approve.Entity;
using Newtonsoft.Json;
using SqlSugar;
using System;

namespace Jinjia.Approve.Model
{
    /// <summary>
    /// 审批流模板远程接口维护
    ///</summary>
    public class JJFlowTemplateRemoteInterfaceResponse : JJFlowTemplateRemoteInterface
    {
        /// <summary>
        /// 完整地址
        /// </summary>
        public string FullAddress
        {
            get
            {
                return BaseAddress + Address;
            }
        }

        /// <summary>
        /// 基地址
        /// </summary>
        public string BaseAddress { get; set; }
    }

    /// <summary>
    /// 下拉列表返回
    /// </summary>
    public class JJFlowTemplateRemoteInterfaceDropDownListResponse
    {
        /// <summary>
        /// 远程接口名称 
        ///</summary>
        public string InterfaceCodeName { get { return BaseAddressCode + InterfaceCode; } }

        /// <summary>
        /// 远程接口编码
        /// </summary>
        public string InterfaceCode { get; set; }

        /// <summary>
        /// 基础地址编码 
        ///</summary>
        [JsonIgnore]
        public string BaseAddressCode { get; set; }
    }
}